#include "itemform.h"
#include "ui_itemform.h"

itemForm::itemForm(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::itemForm)
{
    ui->setupUi(this);
}

itemForm::~itemForm()
{
    delete ui;
}

void itemForm::setDishes(QString name, QString ingredients, int prize, int number)
{
    ui->nameLb->setText(name);
    ui->ingredientsLb->setText(ingredients);
    ui->prizeLb->setText(QString::number(prize));
    ui->numberLb->setText(QString::number(number));
}

QString itemForm::getName()
{
    return ui->nameLb->text();
}
